<!-- Begin admin/genconfig.tpl -->
<form method="post" action="?module=admin&action=genconfig&cid={$smarty.get.cid}">
{if is_array($params)}
<input type="hidden" name="catid" value={$cid} />
{opentable}
{titlebar colspan=2 title=$ctitle[$cid]}
	{foreach from=$params item=param}
	<tr>
		<td class="sectiontableentry2" width="40%" align="right" valign="middle">{$param.param_text}</td>
		<input type="hidden" name="param{$param.pid}" value={$param.pid} />
		<td class="sectiontableentry1" width="60%">
		{if $param.input_type eq "text"}
			<input type="text" size="50" maxlength="255" name="value{$param.pid}" value="{$param.value}" />
		{elseif $param.input_type eq "memo"}
			<textarea cols="50" rows="5" name="value{$param.pid}">{$param.value|stripslashes}</textarea>
		{elseif $param.input_type eq "checkbox"}
			<input type="checkbox" name="value{$param.pid}"{if $param.value eq "t"} checked="checked"{/if}"  />
		{elseif $param.input_type eq "select"}
			<select name="value{$param.pid}">
			{selectoption data=$param.select_data selected=$param.value}
		{/if}
		</td>
	</tr>
	{/foreach} 
{/if}
</table>
<input type="submit" class="button" value={$lg->save} />
</form>
<!-- End admin/genconfig.tpl -->

